/*
 * Copyright (C) 2020 xuexiangjys(xuexiangjys@163.com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package com.jc.camerascan.utils;

/**
 * @Package: com.jc.camerascan.utils
 * @Description: 权限管理
 * @Author: xuchi
 * @CreateDate: 2020/7/31 0:06
 * @Version: 1.0
 */
public class JurisdictionUtils {

    public static boolean isAgree() {
        boolean isAgree = MMKVUtils.getBoolean("key_agree_privacy", false);
        return isAgree;
    }

    public static boolean isLogin() {
        boolean isLogin = MMKVUtils.getBoolean("is_login", false);
        return isLogin;
    }

    public static boolean isVip() {
        int is_vip = MMKVUtils.getInt("is_vip", 0);
        boolean isVip = false;
        if (is_vip == 1) {
            isVip = true;
        } else {
            isVip = false;
        }
        return isVip;
    }

}
